<?php
/**
 * Initiate application on startup
 */
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    /**
     * Init application resources
     *
     * @return void
     */
    protected function _initResources()
    {
        $moduleLoader = new Zend_Application_Module_Autoloader(array(
            "namespace" => "",
            "basePath" => APPLICATION_PATH
        ));
    }
   /**
     * Common view settings
     *
     * @return void
     */
    protected function _initViewSettings()
    {
        $this->bootstrap("view");

        $view = $this->getResource("view");
        Zend_Registry::set("view", $view);

        // set encoding and doctype
        $view->setEncoding("UTF-8");
        $view->doctype("XHTML1_STRICT");

        // set the content type and language
        $view->headMeta()->appendHttpEquiv(
            "Content-Type", "text/html; charset=UTF-8"
        );
        $view->headMeta()->appendHttpEquiv("Content-Language", "ru-RU");

        // set css links
        $view->headLink()->appendStylesheet("/css/skin.css");

        $view->headScript()
            ->appendFile($view->baseUrl("/js/ext-core.js"));

        $view->headTitle("Blank");
        $view->headTitle()->setSeparator(" - ");

        $view->skipHeaderSearch = false;
    }


}

